package com.dykj.fireFighting.server.socialUnit.firemanger.service.impl;

import com.dykj.fireFighting.api.socialUnit.firemanger.entity.KeyPartsDevice;
import com.dykj.fireFighting.api.socialUnit.firemanger.service.IKeyPartsDeviceService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.socialUnit.firemanger.mapper.KeyPartsDeviceMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;



import java.util.List;
import java.util.Map;

/**
 * 重点部位设备中间表
 *
 * @Author aixiaolan
 * @Date  2021-07-06 08:42:32
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class KeyPartsDeviceServiceImpl extends BaseServiceImpl<KeyPartsDeviceMapper, KeyPartsDevice> implements IKeyPartsDeviceService {

    @Override
    public  List<String> getByKeyPartsId(String keyPartsId,  Integer type){
        return baseMapper.getByKeyPartsId(keyPartsId,type);
    }

    @Override
    public int delByKeyPartsId( String keyPartsId){
        return baseMapper.delByKeyPartsId(keyPartsId);
    }


}
